package scalapackage.testspark

/**
  * Created by Germmy on 2018/5/12.
  */
object TestSplit {

  def main(args: Array[String]) {

    //制表符为啥识别不了，妈的，，一会再研究下
//    val mystr:String="20161123101523 http://h5.learn.com/h5/teacher.shtml"
    val mystr2:String="20161123101523|http://h5.learn.com/h5/teacher.shtml"

    val split: Array[String] = mystr2.split("\\|")
    println("split:"+split.toBuffer)
    println(split(0)+"==="+split(1))



  }

}
